package lxq.away3d.primitives;

import flash.geom.Vector3D;
import away3d.containers.Scene3D;
import away3d.core.base.Geometry;
import away3d.entities.Mesh;
import away3d.materials.MaterialBase;

class MeshParent extends Mesh {
public function new(geometry:Geometry, material:MaterialBase=null) {
	super(geometry, material);
}

public function setMaterial(material:MaterialBase=null):Void {
	this.material=material;
}

//set position of mesh;
public function setPosition(position:Vector3D=null):Void {
	if (position)
	this.position=position;
}

//set xyz position of mesh
public function setPositionXYZ(x:Float=0, y:Float=0, z:Float=0):Void {
	this.position.x=x;
	this.position.y=y;
	this.position.z=z;
}

//set rotation of mesh
public function setRotationXYZ(anglex:Float, angley:Float, anglez:Float):Void {
	this.rotationX=anglex;
	this.rotationY=angley;
	this.rotationZ=anglez;
}
} //end class
} //end package
